import requests

# 创建会话
session = requests.Session()
# 设置会话参数
session.get("https://httpbin.org/cookies/set/sessioncookie/123456789")
response = session.get("https://httpbin.org/cookies")

print(response.text)
